package com.cbd.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cbd.service.impl.ComplaintrecordServiceImpl;

@Controller
public class ComplaintrecordController {
	@Resource(name="complaintrecordServiceImpl")
	private ComplaintrecordServiceImpl complaintrecordService;
	
	@RequestMapping(path="showLandlady")
	public @ResponseBody List<Object[]> showLandlady(HttpServletRequest req){
		String page=req.getParameter("page");
		List<Object[]> list=complaintrecordService.showLandlady(Integer.parseInt(page));
		System.out.println(page);
		return list;
		
	}
	

}
